package com.ants.boot.wx.vo.wxbanner;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author 蚂蚁会花呗
 * @date 2022/5/23 18:02
 */
@ApiModel(value = "添加微信首页滚动")
public class AddWxBannerDto {

    @ApiModelProperty("图片路径")
    @NotBlank(message = "图片不能为空")
    private String url;

    @Range(min = 1,max = 2,message = "值只能是1或者2")
    @ApiModelProperty(value = "状态值，1或者2,1正常2，停用")
    private Integer status;


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
